<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="menu" content="mainMenu" />
<meta name="nav" content="0" />
<meta name="acc" content="0" />
<title>用户部门</title>
<script type="text/javascript"
	src="<c:url value='/ext/ui/jquery-ui-1.8.12.custom.min.js'/>"></script>
<link href="${ctx}/styles/lightness/jquery-ui-1.8.12.custom.css"
	rel="stylesheet" />
<script>
	$(document).ready(function() {
		//聚焦第一个输入框
		$("#userName").focus();
		//为inputForm注册validate函数
		$("#inputForm").validate({
			rules : {
				name : "required",
				email : {
					email : true,
					required : true
				},
				age : "digits",
				mobilePhone : "digits",
				phone : {
					digits : true,
					required : true
				}
			},
			messages : {
				userName : {
					remote : "<font color='red'>用户登录名已存在</font>"
				}
			}
		});
	});

</script>
</head>
<body>
<form action="user!save.action" method="post" class="yform"
	id="inputForm"><input type="hidden" name="id" value="${id }" />
<div id="tabs" class="ui-tabs ui-widget ui-widget-content ui-corner-all">
<ul
	class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all ui-sortable">
	<li><a id="build"
		class="ui-state-default ui-corner-top ui-tabs-selected ui-state-active"
		href="#">人员信息</a></li>
	<li><a id="design" class="ui-state-default ui-corner-top "
		href="${ctx}/project/labs/userdepartment!input.action?deptId=${deptId}&projectId=${projectId}&typeId=${typeId}&organizationId=${organizationId}&id=${userdeptId}">部门信息</a></li>
	<li><a class="ui-state-default ui-corner-top "
		href="${ctx}/project/labs/userqualification.action?deptId=${deptId}&projectId=${projectId}&typeId=${typeId}&organizationId=${organizationId}&userdeptId=${userdeptId}&userId=${id}">人员资质</a></li>
	<li><a class="ui-state-default ui-corner-top "
		href="#">项目经历</a></li>
</ul>
<table class="noborder">
	<tr class="type-text">
		<td>姓名&nbsp;<font color="red">*</font>:</td>
		<td><input type="text" name="name" id="name" value="${name}" />
		<input type="hidden" name="projectId" value="${projectId}" /> <input
			type="hidden" name="organizationId" value="${organizationId}" /> <input
			type="hidden" name="deptId" value="${deptId}" /> <input type="hidden"
			name="userdeptId" value="${userdeptId}" /> <input type="hidden"
			name="typeId" value="${typeId}" /></td>
		<td>职称&nbsp;<font color="red">*</font>:</td>
		<td><input type="text" id="dutyName" name="dutyName"
								value="${dutyName}" /></td>
	</tr>
	<tr class="type-text">
		<td>性别&nbsp;<font color="red">*</font>:</td>
		<td><s:select list="{'男','女'}" name="sex"></s:select></td>
		<td>年龄&nbsp;<font color="red">*</font>:</td>
		<td><input type="text" id="age" name="age" value="${age}" /></td>
	</tr>
	<tr class="type-text">
		<td>学历&nbsp;</td>
		<td><pt:code category="1002" name="degreeSet" toScope="request"></pt:code>
		<s:select list="#request.degreeSet" name="degree" listKey="value"
			listValue="label"></s:select></td>
		<td>专业&nbsp;</td>
		<td><input type="text" id="specialty" name="specialty"
			value="${specialty}" /></td>
	</tr>
	<tr class="type-text">
		<td>手机&nbsp;<font color="red">*</font>:</td>
		<td><input type="text" id="mobilePhone" name="mobilePhone"
			value="${mobilePhone}" /></td>
		<td>固定电话&nbsp;<font color="red">*</font>:</td>
		<td><input type="text" id="phone" name="phone" value="${phone}" />
		</td>
	</tr>
	<tr class="type-text">
		<td>邮箱&nbsp;<font color="red">*</font>:</td>
		<td colspan="3"><input type="text" id="email" name="email"
			value="${email}" /></td>
	</tr>
	<tr class="type-text">
		<td>备注&nbsp;</td>
		<td colspan="3"><input type="text" id="remark" name="remark"
			value="${remark}" /></td>
	</tr>
</table>
</div>
<div class="type-button"><input id="submitBtn"  
	type="submit" class="submit" value="提交" />&nbsp; <input
	  type="button" value="返回" class="reset"
	onclick="history.back()" /></div>
</form>
</body>
</html>